package com.example.loginsystem.service;

import com.example.loginsystem.bean.MyUser;
import com.example.loginsystem.model.Paging;
import com.example.loginsystem.model.Result;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Cheung0
 * Created on 2021/11/21
 */
@Service
public interface MyUserService {

    Result<MyUser> add(MyUser myUser);

    Result<MyUser> delete(int id);

    Result<MyUser> update(MyUser myUser);

    Result<MyUser> getByUserName(String userName);

    Paging<MyUser> getByPage(int current, int size);

    List<MyUser> getAll();

}
